package com.lnu.information.dto;

import com.alibaba.fastjson.JSON;

import java.util.Date;
import java.util.List;

import static com.lnu.information.variable.StaticVariable.PDF;
import static com.lnu.information.variable.StaticVariable.PDF_CONVERT_TO_JSON;


/**
 * @author : jian.zhang-2
 * @description: pdf转文本后的对象
 * @date : Create in 12:20 PM 2021/6/22
 * @modified By :
 */
public class PdfDto {

    /***
     * id
     */
    private Integer id;

    /***
     * 操作时间
     */
    private Date createTime;

    /***
     * pdf标题之前面的内容
     */
    private String preTitle;

    /***
     * pdf标题
     */
    private String title;

    /***
     * 文本中的内容，以句子划分
     */
    private List<SentenceDTO> sentenceDTOList;

    /***
     * 文件名
     */
    private String fileName;

    /***
     * 文件大小
     */
    private String fileSize;

    /***
     * 文件类型
     */
    private String fileType = PDF;

    /***
     * 操作详情
     */
    private String details = PDF_CONVERT_TO_JSON;

    /***
     * 输出路径(保存路径)
     */
    private String outputFile;

    /***
     * 总页数
     */
    private Integer pages;

    /***
     * 状态
     */
    private String status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getPreTitle() {
        return preTitle;
    }

    public void setPreTitle(String preTitle) {
        this.preTitle = preTitle;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFileSize() {
        return fileSize;
    }

    public void setFileSize(String fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getDetails() {
        return details;
    }

    public void setDetails(String details) {
        this.details = details;
    }

    public List<SentenceDTO> getSentenceDTOList() {
        return sentenceDTOList;
    }

    public void setSentenceDTOList(List<SentenceDTO> sentenceDTOList) {
        this.sentenceDTOList = sentenceDTOList;
    }

    public String getOutputFile() {
        return outputFile;
    }

    public void setOutputFile(String outputFile) {
        this.outputFile = outputFile;
    }

    public Integer getPages() {
        return pages;
    }

    public void setPages(Integer pages) {
        this.pages = pages;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
